package remote.gummachine.state;


import remote.gummachine.GumballMachine;

public class NoQuarterState implements State{
    private GumballMachine gumballMachine;
    public NoQuarterState(GumballMachine gumballMachine) {
        this.gumballMachine = gumballMachine;
    }
    @Override
    public void insertQuarter() {
        System.out.println("Welcome to get gum ball");
        gumballMachine.setState(gumballMachine.getHasQuarterState());
    }

    @Override
    public void ejectQuarter() {
        System.out.println("Sorry, you never insert a quarter");
    }

    @Override
    public void turnCrank() {
        System.out.println("Sorry, you can't turn crank without insert a quarter");
    }

    @Override
    public void dispense() {
        System.out.println("Sorry, gum ball will be released when you insert a quarter");
    }
}
